<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="l" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Lite - Bootstrap Skin</title>
    
    
    <!-- Favicon -->
    <link rel="shortcut icon" href="img/favicon.ico" />
    
    <!-- CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/style.css" rel="stylesheet" />
    
    <!-- Google Fonts -->
    <link href='http://fonts.useso.com/css?family=Titillium+Web' rel='stylesheet' type='text/css'>

</head>

<body>

    <!-- Start: Preloader -->
    <div id="preloader">
        <div id="loader"></div>
    </div>
    <!-- End: Preloader -->

    <!-- Start: Main Content -->
    <div class="main-container">
        
        <!-- Start: Home -->
        <section class="home-section">
            <div class="container" style="margin-top: 80px">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<h1 style="color: FFFFFF">图书商城</h1>
					</div>
				</div>
            </div>
        </section>
        <!-- End: Home -->
		
		<!-- Start: Content -->
        <section class="content-section">
            <div class="container" style="margin-top: 80px">
				<div class="row">
					<div class="col-md-12">
						<nav role="navigation" class="navbar navbar-default">	
						
							<div class="navbar-header">
								<button data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" class="navbar-toggle" type="button">
									<span class="sr-only">Toggle navigation</span>
									<span class="icon-bar"></span>
									<span class="icon-bar"></span>
									<span class="icon-bar"></span>
								</button>
								<a href="#" class="navbar-brand"></a>
                                <a href="#" class="navbar-brand"></a>
                                <a href="#" class="navbar-brand"></a>
                                <a href="#" class="navbar-brand"></a>
							</div>							
							<div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
								<ul class="nav navbar-nav">
									<li class="active"><a href="SelectBook.do?type=all">首页</a></li>
									<li><a href="carGood.jsp">购物车</a></li>
                                    <li><a href="SelectOrderInfo.do?type=orderInfo">订单</a></li>
									<li class="dropdown">
										<a data-toggle="dropdown" class="dropdown-toggle" href="SelectMessage.do?type=all">留言空间 <b class="caret"></b></a>
										<ul role="menu" class="dropdown-menu">
											<li><a href="SelectMessage.do?type=all">全部留言</a></li>
											<li><a href="SelectMessage.do?type=my">我的留言</a></li>
											<li><a href="message_add.jsp">写留言</a></li>
										</ul>
									</li>
								</ul>
								<form role="search" class="navbar-form navbar-left" action="SelectBook.do?type=search" method="post">
									<div class="form-group">
										<input type="text" class="form-control" name="keyword">
									</div>
									<button class="btn btn-danger" type="submit">Submit</button>
								</form>
								<ul class="nav navbar-nav navbar-right">
									<li><a href="login_user.jsp">登录</a></li>
                                    <li><a href="Logout.do">注销</a></li>
									
								</ul>
							</div>
						</nav>
					</div>
				</div>
				
				
				<div class="row">
					<div class="col-md-12" align="center">
						<h2 class="page-header"><span>重新留言</span></h2>
					</div>
					<div class="col-xs-12">
						<div class="" align="center">
							<form role="form" action="AllMessage.do?type=modify" method="post">
							<l:if test="${! empty msg }">
							<input type="hidden" name="mid" value="${msg.mid}">
								<div class="form-group" align="left">
									
									<input type="text" name="title" value="${msg.title}" class="form-control" id="exampleInputEmail1" placeholder="输入标题" style="width: 300">
								</div>
								
								
								<div class="form-group" align="center">
									<p align="left">曾经的留言:${msg.content}</p>
									<br><textarea rows="10" cols="20" name="content" class="form-control" id="exampleInputEmail1" placeholder="新的留言"></textarea>
								</div>
								
								<br/>
								<button type="submit" class="btn btn-primary-alt">确认修改</button>
								</l:if> 
							</form>
						</div>
					</div>
				</div>
            </div>
        </section>
        <!-- End: Content -->
        
        <!-- Start: Footer-->
        <footer class="footer">
            <p>Copyright &copy; 2017.Company name All rights reserved.</p>
        </footer>
        <!-- End: Footer -->
        
    </div>
    <!-- End: Main Content -->
    
    <!-- Javascript Files -->
    <script type="text/javascript" src="js/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/jquery.pagination.js"></script>
	<script type="text/javascript" src="js/jquery.knob.min.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
</body>
</html>
